package com.zlp.spring.tx.service.v1;


import com.zlp.spring.tx.service.v1.config.MybatisConfig;
import com.zlp.spring.tx.service.v1.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 注解测试类
 * @author Zou.LiPing
 * @date: 2021/2/24 17:13
 */
public class AnnotationTxTest {
 

    public static void main(String[] args) {

        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(MybatisConfig.class);
        UserService userService = ac.getBean("userService", UserService.class);
//        userService.getUserList();
        userService.addUser();
//        userService.addUser1(0);
//        userService.addUser2(1);



    }
}